package com.base.common.persistent.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 员工实体类
 * 
 * @author Kevin Colin
 * @datetime 2015年9月6日上午11:36:43
 *
 */
public class Employee implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int id; // 主键id
	private String code;	// 
	private String name; // 员工姓名
	private String phone; // 电话号码
	private List<Compounds> compoundsList; // 所属小区信息列表
	private int jobs; // 岗位
	private Dept dept; // 部门
	private Date birthday; // 生日
	private String headPicUrl; // 头像图片url
	private Terminal terminal; // 关联的设备信息
	private List<Authority> authorities; // 权限集合

	public int getId() {
		return id;
	}

	public Employee setId(int id) {
		this.id = id;
		return this;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public int getJobs() {
		return jobs;
	}

	public Employee setJobs(int jobs) {
		this.jobs = jobs;
		return this;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public List<Authority> getAuthorities() {
		return authorities;
	}

	public void setAuthorities(List<Authority> authorities) {
		this.authorities = authorities;
	}

	public Terminal getTerminal() {
		return terminal;
	}

	public void setTerminal(Terminal terminal) {
		this.terminal = terminal;
	}

	public Dept getDept() {
		return dept;
	}

	public Employee setDept(Dept dept) {
		this.dept = dept;
		return this;
	}

	public List<Compounds> getCompoundsList() {
		return compoundsList;
	}

	public void setCompoundsList(List<Compounds> compoundsList) {
		this.compoundsList = compoundsList;
	}

	public String getHeadPicUrl() {
		return headPicUrl;
	}

	public void setHeadPicUrl(String headPicUrl) {
		this.headPicUrl = headPicUrl;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}
}
